<div class="context">
      <form method="get" action="<?php echo $this->Html->url(array('controller'=> 'default','action'=>'search')); ?>" name="frmSearch" id="frmSearch" class="frmSearch">
        <span class="searchBox">
        <input type="text" value="Tìm kiếm" id="txtSearch" name="q" />
        <a href="javascript:void();" id="quick-search-submit" title="Search">&nbsp;</a> </span> <a href="javascript:void();" title="Tìm kiếm nâng cao" class="linkSearch">Tìm kiếm nâng cao</a>
        <input type="hidden" value="001897934961332779774:ysd417-tqpk" name="cx" />
        <input type="hidden" value="FORID:10" name="cof">
        <input type="hidden" value="UTF-8" name="ie">
      </form>
        <!--frmSearch-->
        <div class="titlePage">
          <h2><?php echo $this->Html->image('dummy.gif', array('class'=>'uiIcon24 initIcon24-3', 'alt'=>'MÁCH NHỎ CHO BẠN')); ?><span>MÁCH NHỎ CHO BẠN</span></h2>
          <ul>
            <?php
                $i = 0;
                foreach($cat_list AS $index=>$cat_row):
                if($index == 0){
                    $css_class=' class="first"';
                }else{
                    $css_class='';
                }
                $i++;
            ?>

            <li<?php echo $css_class;?>><a href="<?php echo $this->Html->url(array('controller'=>'mach-nho-cho-ban','action'=>'danh-muc',"{$cat_row['id']}-{$cat_row['alias']}",'ext'=>'html'));?>" title="<?php echo $cat_row['title']; ?>"><?php echo $this->Html->image('dummy.gif', array('class'=>'uiIcon initIcon-6', 'alt'=> $cat_row['title'])); ?><span><?php echo $cat_row['title']; ?></span></a></li>
            <?php endforeach;?>
          </ul>
        </div>
        <?php
            if(isset($best_buy_product[0])):
            $total_product =   sizeof($best_buy_product);
        ?>
        <!--Mach nho-->
        <div class="blockProSell">
          <h3>Sản phẩm bán chạy</h3>
          <ul>
            <?php
                $i = 1;
            foreach($best_buy_product AS $row):
                $class_css  =   '';
                if($i == $total_product){
                    $class_css  =   ' class="last"';
                }
            ?>
            <li<?php echo $class_css; ?>> <a href="<?php echo $this->Html->url(array('controller'=>'gio-trai-cay', 'action'=>'chi-tiet-gio-trai-cay', "{$row['Basket']['id']}-{$row['Basket']['alias']}")); ?>" title="<?php echo $row['Basket']['title']; ?>">
            <?php echo $this->Html->image($basket_image_thumb_url_path . $row['Basket']['images_small'], array('alt'=>$row['Basket']['title'])); ?>
            <span><?php echo $row['Basket']['title']; ?></span> </a> </li>
            <?php
                $i++;
            endforeach; ?>
          </ul>
        </div>
        <!--blockProSell-->
        <?php endif; ?>
      </div>
      <!--end context-->
      <div class="content">
        <ul class="breadcrumb">
          <li class="first"><a href="<?php echo $this->Html->url(array('controller'=>'shares', 'action'=>'index')); ?>" title="Mách nhỏ">Mách nhỏ</a></li>
          <li><a href="<?php echo $this->Html->url(array('controller'=>'mach-nho-cho-ban','action'=>'danh-muc',"{$cat_list[$content['Share']['cat_id']]['id']}-{$cat_list[$content['Share']['cat_id']]['alias']}",'ext'=>'html'));?>" title="Sinh tố nước ép"><?php echo $cat_list[$content['Share']['cat_id']]['title']; ?></a></li>
          <li><?php echo $content['Share']['title']; ?></li>
        </ul>
        <!--breadcrumb-->
        <div class="postBlock">
          <dl class="titlePost">
            <dt><?php echo $content['Share']['title']; ?></dt>
          </dl>
          <div class="detailPost fckDefault">
            <?php echo $content['Share']['content']; ?>
          </div>
          <a class="return" href="<?php echo $this->Html->url(array('controller'=>'shares', 'action'=>'index')); ?>" title="">Quay về</a> </div>
        <?php if(isset($other_shares[0])): ?>
        <div class="otherNews">
          <h4>Các tin khác liên quan:</h4>
          <ul>
            <?php foreach($other_shares AS $row): ?>
            <li><a href="<?php echo $this->Html->url(array('controller'=>'mach-nho-cho-ban', 'action'=>'chi-tiet', "{$row['Share']['id']}-{$row['Share']['alias']}",'ext'=>'html')); ?>" title="<?php echo $row['Share']['title']; ?>"><?php echo $row['Share']['title']; ?></a></li>
            <?php endforeach; ?>
          </ul>
        </div>
        <?php endif; ?>
        <!--end otherNews-->
      </div>
      <!--end content-->
